package com.b2bpsssm.controller.material.customer;


import com.b2bpsssm.common.R;
import com.b2bpsssm.pojo.CustomerLabel;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Api(value = "客户标签页面",tags = "客户标签接口Api")
public class CustomerLabelController {
    /*
     * 客户标签查询
     * */
    @RequestMapping(value = "/customer/queryCustomerLabelByPageLimit",method = RequestMethod.GET)
    @ApiOperation(value = "查询客户标签",notes = "显示客户标签",httpMethod = "get",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "page",value = "当前页码",required = true),
            @ApiImplicitParam(name = "limit",value = "每页条数",required = true)
    })
    @ResponseBody
    public R queryCustomerLabelByPageLimit(Integer page, Integer limit){
        R r = new R();
        r.setCode(200);
        r.setData(666);
        r.setMassage("success");
        return r;
    }



    /*
     * 新增标签
     * */
    @RequestMapping(value = "/customer/addCustomerLabel",method = RequestMethod.POST)
    @ApiOperation(value = "新增客户标签",notes = "新增并保存",httpMethod = "post",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "cus_Label_Create_Date",value = "创建时间",required = true),
            @ApiImplicitParam(name = "cus_Label_Name",value = "标签名称",required = true),
    })
    @ResponseBody
    public R addCustomerLabel(CustomerLabel CustomerLabel){
        R r = new R();
        r.setCode(200);
        r.setData(666);
        r.setMassage("success");
        return r;
    }

    /*
     * 删除客户标签
     * */
    @RequestMapping(value = "/customer/delCustomerLabel",method = RequestMethod.POST)
    @ApiOperation(value = "新增客户标签",notes = "新增并保存",httpMethod = "post",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "cus_Label_Name",value = "标签名称",required = true),
    })
    @ResponseBody
    public R delCustomerLabel(String cusClaName){
        R r = new R();
        r.setCode(200);
        r.setData(666);
        r.setMassage("success");
        return r;
    }

    /*
     * 修改标签
     * */
    @RequestMapping(value = "/customer/updateCustomerLabel",method = RequestMethod.POST)
    @ApiOperation(value = "修改客户标签",notes = "新增并保存",httpMethod = "post",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "cus_Label_Create_Date",value = "创建时间",required = true),
            @ApiImplicitParam(name = "cus_Label_Name",value = "标签名称",required = true),
    })
    @ResponseBody
    public R updateCustomerLabel(CustomerLabel CustomerLabel){
        R r = new R();
        r.setCode(200);
        r.setData(666);
        r.setMassage("success");
        return r;
    }
}
